package com.example.demo.service;

import com.example.demo.api.Dto.EmployeeDto;
import com.example.demo.domain.entity.Employee;

import java.util.List;

public interface EmployeeService {

    List<Employee> listEmployees(EmployeeDto employeeDTO);

    Employee findEmployeeById(Integer employeeId);

    Employee getEmployeeWithLeader(EmployeeDto employeeDTO);

    /**
     * 获取下属员工
     * @param employeeDTO
     * @return
     */
    List<Employee> getEmployeeList(EmployeeDto employeeDTO);

    void updateEmployee(EmployeeDto employeeDTO);

    void insertEmployee(EmployeeDto employeeDTO);
}
